﻿<?php echo $this->doctype() ?>
<html>
<head>
    
    <title>Cong thong tin game, ung dung, lam viec online, kiem tien online, game android, android game , tai game android, download game java, huong dan cai dat game java game android, linkseo, quang ba web</title>
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
    <meta name="keywords" content="linkseo, kiem tien online, game java,game android, seo game, ung dung, tai game free, top game, top ung dung" />	
    <meta name="description" content="Cong thong tin game, ung dung, lam viec online, kiem tien online, game android, android game , tai game android, download game java, huong dan cai dat game java game android, linkseo, quang ba web" />
    <meta name="generator" content="linkseo - Zend FW" />
	<script type="text/javascript">

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-22041922-4']);
        _gaq.push(['_trackPageview']);
        
        (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();

    </script>
   	<?php echo $this->headScript() ?>
    <?php echo $this->headLink()?>
</head>
<body>
<?php  $auth = new AuthModel();?>
    <div id="wapper">
        <div style="height:20px; background:#000; color:#ccc; text-align:right;">
            <?php if(!$auth->hasIdentity()){ 
            
            echo"Không cần đăng ký chỉ cần đăng nhập là bạn đã có tài khoản cho mình "; } ?>
        </div>
	

        <div id="header" >
            <div id="logo">
                 <a href="/"><img src="/images/icon/logo.png" /></a>
            </div>
            <div id="nav_bar">
                <ul>
                    <li <?php if($this->action == "index"){?> class="selected" <?php }?>><a href="/index/index">Home</a></li>
                    <li <?php if($this->action == "about"){?> class="selected" <?php }?>><a href="/index/about">Giới thiệu</a></li>
                    <li <?php if($this->action == "instruction"){?> class="selected" <?php }?>><a href="/index/instruction">Hướng dẫn</a></li>
                    <li <?php if($this->action == "policy"){?> class="selected" <?php }?>><a href="/index/policy">Chính sách</a></li>
                </ul>
            </div>
            
            <div id="login">                   
            <?php if(!$auth->hasIdentity()){?>
               <!-- <div class="text">Đăng nhập bằng tài khoản yahoo</div> -->
                <a href="/index/login-yahoo"><div class="login">Đăng nhập Yahoo</div></a> 
                <a href="/index/login-gmail"><div class="login">Đăng nhập Gmail</div></a>
            <?php }else{ 
                $user = $auth->getIdentity();  
            ?>
			<div class ="login_yahoo2">
                <div class="text"><?php echo $user['email']; ?></div>
                <div class="small-nav">
                    <ul>
                        <li <?php if($this->action == "selected-link"){?> class="selected" <?php }?>><a href="/index/selected-link">Sản lượng</a></li>
                        <?php if($user['is_widget_publisher']){ ?>
                        <li <?php if($this->action == "widget-manage"){?> class="selected" <?php }?>><a href="/index/widget-manage">Widget</a></li>
                        <?php }// end if?>
                        <li <?php if($this->action == "edit-info"){?> class="selected" <?php }?>><a href="/index/edit-info">Thông tin </a></li>
                        <li><a href="/index/logout">Thoát</a></li>
                    </ul>
                </div>
				</div>
            <?php }?>
			
           </div>
        </div>
        <!-- end #header -->
        
        <div id="content">
            <?php echo $this->layout()->content; ?>
        </div>
        <!-- end #content -->
        <div id="footer">
           © Copyright 2012 Linkseo.info 
        </div>
        <!-- end #footer -->
        <div id="menubottom">
			<?php include 'components/menubottom2.phtml'?>
		</div>
    </div>
    <!-- end #wrapper -->    
</body>
</html>
